#pragma warning(disable:4996)
#include<stdio.h>
//模拟实现函数memcpy
void* My_Memcpy(void* arr1, const void* arr2,size_t num)
{
        void* ret = arr1;
        while ((num--)&&(*((char*)arr1)++ = *((char*)arr2)++) );
        return ret;
}       
int main()
{
        char arr1[10] = "abcde";
        char arr2[8] = "hhhh";
        size_t num;
        scanf("%u", &num);
        My_Memcpy(arr1, arr2, num);
        printf("%s\n", arr1);
        return 0;
}

